package com.yztstudy.service;

import com.yztstudy.dto.Result;
import com.yztstudy.entity.Shop;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * Shop的业务逻辑层接口
 */
public interface IShopService extends IService<Shop> {

    public abstract Result queryById(Long id); //根据id查询商铺信息

    public abstract Result update(Shop shop); //根据ID更新店铺

    public abstract Result queryShopByType(Integer typeId, Integer current, Double x, Double y); //根据商铺类型分页查询商铺信息

    public abstract Result queryShopByName(String name, Integer current); //根据商铺的名字来分页查询商铺的信息

    public abstract Result saveShop(Shop shop); //新增店铺
}
